import 'package:flutter_test/flutter_test.dart';
import 'package:video_cache/video_cache.dart';

void main() {
  test('VideoCache', () async {
    final instance1 = VideoCache();
    final instance2 = VideoCache();

    expect(instance1, same(instance2), reason: 'VideoCache should return the same instance');
    expect(true, true);
  });
  test('convertToCacheProxyUrl should handle URL conversion', () async {
    const testUrl = 'https://example.com/video.mp4';

    try {
      final result = await VideoCache().convertToCacheProxyUrl(testUrl);
      expect(result, isNotNull);
    } catch (e) {
      expect(e, isNotNull);
    }
  });
}